package com.spring.springaop.test01;

import org.springframework.context.annotation.AnnotationConfigApplicationContext;

/**
 * 1.初始化->从注解开始
 * 2.div方法执行
 */
public class App {

	public static void main(String[] args) {
		AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext(MainConfigAOP.class);
		MathCalculator mathCalculator = (MathCalculator) context.getBean("mathCalculator");
		int div = mathCalculator.div(1, 2);
	}
}
